<?php
if (INSTALL_MODULE_DONE)
	return array(
		'session'=>array(
			'class'=>'system.web.CDbHttpSession',
			'connectionID'=>'db',
			'sessionTableName' => '{{sessions}}',
		),
		// uncomment the following to enable URLs in path-format
		'urlManager'=>array(
			'urlFormat'=>'path',
			'cacheID'=>false,
			'urlSuffix'=>'',
			'showScriptName' => false,
			'class'=>'application.components.MyUrlManager',
			'rules'=>array(
				'/' => 'site/index',
				'<action:(!admin)>/*' => 'site/<action>',
				'<_c:(site)>/<_a>' => '<_c>/<_a>',
				'<_m>/<_a>' => '<_m>/default/<_a>',
				'<_m>/<_c>/<_a>' => '<_m>/<_c>/<_a>',
				
				'admin/<module:\w+>/<action:\w+>'=>'<module>/admin/<controller:(default)>/<action>', // CGridView ajax
				'admin/<module:\w+>/<controller:\w+>/<action:\w+>'=>'<module>/admin/<controller>/<action>', // CGridView ajax
			),
		),
	);
else
	return array();
?>